import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'


import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control



import i18n from '@/lang'//导入语言包

import Directive from '@/directive'//自定义指令实现按钮级控制
Vue.use(Directive)

import Component from '@/components/index'//全局也要去components下的index.js调用来这边全局注册
Vue.use(Component)
// Vue.component('PageTools', PageTools)//全局注册==前者标签名，后者这个组件key+value的对象

Vue.use(ElementUI)



Vue.config.productionTip = false

// console.log(process.env)//{NODE_ENV: 'development', VUE_APP_BASE_API: '/api', VUE_APP_NUM: '200', BASE_URL: '/'}

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})

